package site.codeyin.javautils.controller.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 基础数据类
 *
 * @author Jiaju Zhuang
 **/
@Getter
@Setter
@EqualsAndHashCode
public class DownloadData {
    @ExcelProperty("字符串标题")
    private String string;
    @ExcelProperty(value = "日期标题")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date date;
    @ExcelProperty("数字标题")
    private Double doubleData;
}